﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ClientWebPart Name="QRCodeAppPart" Title="QRCode App Part" Description="Insert a QRCode in your page" DefaultWidth="210" DefaultHeight="210">

    <Content Type="html" Src="~appWebUrl/Pages/QRCodeAppPart.aspx?SPHostUrl={HostUrl}&amp;SPLanguage={Language}&amp;QRCodeText=_QRCodeText_&amp;RenderMode=_RenderMode_&amp;CustomCssFile=_CustomCssFile_&amp;QRWidth=_QRWidth_&amp;QRHeight=_QRHeight_" />

    <Properties>
      <Property Name="QRCodeText" Type="string" WebBrowsable="true" WebDisplayName="QR Code Text" WebDescription="Text associated with the QR Code" WebCategory="QRCode Settings" DefaultValue="" RequiresDesignerPermission="true" />
      <Property Name="QRWidth" Type="int" WebBrowsable="true" WebDisplayName="QR Code Width" WebDescription="Please Choose the QR Code width." WebCategory="QRCode Settings" DefaultValue="200" RequiresDesignerPermission="true" />
      <Property Name="QRHeight" Type="int" WebBrowsable="true" WebDisplayName="QR Code Height" WebDescription="Please Choose the QR Code height." WebCategory="QRCode Settings" DefaultValue="200" RequiresDesignerPermission="true" />
      <Property Name="RenderMode" Type="enum" WebBrowsable="true" WebDisplayName="Render Mode" WebDescription="Please Choose the html render mode" WebCategory="QRCode Settings" DefaultValue="Canvas" RequiresDesignerPermission="true">
        <EnumItems>
          <EnumItem WebDisplayName="Canvas" Value="Canvas"/>
          <EnumItem WebDisplayName="Table" Value="Table"/>
        </EnumItems>
      </Property>
      <Property Name="CustomCssFile" Type="string" WebBrowsable="true" WebDisplayName="Custom CSS File Url" WebDescription="Please Choose if you want to specify a custom CSS file URL." WebCategory="QRCode Settings" DefaultValue="" RequiresDesignerPermission="true" />
    </Properties>

  </ClientWebPart>
</Elements>
